﻿using Ceri.Platform.EAM.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ceri.Platform.EAM_NEW.API.Services.DTO
{
    public class PatrolMission
    {
        /// <summary>
        /// 点击工单号
        /// </summary>
        public string ORDER_CODE { get; set; }
        /// <summary>
        /// 巡查人
        /// </summary>
        public string DJ_EMP { get; set; }
        /// <summary>
        /// 班组
        /// </summary>
        public string DJ_GROUP { get; set; }
        /// <summary>
        /// 设备总数
        /// </summary>
        public int FacilityCount { get; set; }
        /// <summary>
        /// 设备已检数
        /// </summary>
        public int FacilityReconditionedCount { get; set; }
        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime? PLAN_BEGIN_DATE { get; set; }
        /// <summary>
        /// 计划结束时间
        /// </summary>
        public DateTime? PLAN_END_DATE { get; set; }
        /// <summary>
        /// 执行状态
        /// </summary>
        public int ExecuteStatus { get; set; }
        /// <summary>
        /// 逾期几天
        /// </summary>
        public int OverdueDays { get; set; }
        /// <summary>设备 </summary>
        public List<Equipment> Equipment { get; set; }
    }

    public class Equipment
    {
        /// <summary>
        /// SEQ
        /// </summary>
        public int? SEQ { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string M_NAME { get; set; }
        /// <summary>
        /// 设备编码
        /// </summary>
        public string M_CODE { get; set; }
        /// <summary>
        /// 设备型号
        /// </summary>
        public string SPEC_MODEL { get; set; }
        /// <summary>
        /// 部门
        /// </summary>
        public string usageDepartment_name { get; set; }
        /// <summary>
        /// 位置
        /// </summary>
        public string installPlace_name { get; set; }
        /// <summary>
        /// 待检项
        /// </summary>
        public int QuarantineNum { get; set; }
        /// <summary>
        /// 执行状态
        /// </summary>
        public string S_STATUS { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public string ROUTE_SORT { get; set; }
        /// <summary>
        /// 设备部位
        /// </summary>
        public Part Part { get; set; }
    }

    public class Part
    {
        /// <summary>
        /// SEQ
        /// </summary>
        public long? SEQ { get; set; }
        /// <summary>
        /// 点检工单号
        /// </summary>
        public string ORI_CODE { get; set; }
        /// <summary>
        /// 设备编码
        /// </summary>
        public string M_CODE { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string M_NAME { get; set; }
        /// <summary>                                                                               
        /// 功能位置编码
        /// </summary>
        public string POSITION_CODE { get; set; }
        /// <summary>
        /// 功能位置名称
        /// </summary>
        public string POSITION_NAME { get; set; }
        /// <summary>
        /// 设备分类编码
        /// </summary>
        public string CLASS_CODE { get; set; }
        /// <summary>
        /// 设备分类名称
        /// </summary>
        public string CLASS_NAME { get; set; }
        /// <summary>
        /// 文件类型
        /// </summary>
        public string FILE_TYPE { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        public string FILE_ROUTE { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>
        public string FILE_NAME { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CRE_NAME { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CRE_DATE { get; set; }
        /// <summary>
        /// 文件来源
        /// </summary>
        public string ORI { get; set; }
        /// <summary>
        /// 设备数据集合
        /// </summary>
        public List<EAM_DJ_ORDER_D> EAM_DJ_ORDER_DList { get; set; }
    }
}
